﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AllInOne.Entity
{
    public class BusinessInfo
    {
        public BusinessType businessType { get; set; }
        public string sfzmhm { get; set; }
        public string xm { get; set; }
        public string sjhm { get; set; }
        public string sfzzp { get; set; }
        public string xczp { get; set; }
        public string qmtp { get; set; }
        public string zp { get; set; }

        public string zxbh { get; set; }

        public long sfzId { get; set; }
        public long xczpId { get; set; }
        public long qmId { get; set; }
        public long zpId { get; set; }
        public string lsh { get; set; }

        public string hphm { get; set; }
        

        public string hpzl { get; set; }
        public string vin6 { get; set; }

        public int lnmjIndex { get; set; }


        /// <summary>
        /// 车牌号参数
        /// </summary>
        public string strPlate { get; set; }

        /// <summary>
        /// 备案号参数
        /// </summary>
        public string strYNumber { get; set; }

        public string getImgTitleUrl() {
            switch (this.businessType)
            {
                case BusinessType.QMHZ:
                    return "pack://application:,,,/images/icon_qmhz.jpg";

                case BusinessType.YSBZ:
                    return "pack://application:,,,/images/icon_ysbz.jpg";

                case BusinessType.SHHZ:
                    return "pack://application:,,,/images/icon_shhz.jpg";
                case BusinessType.CCSL:
                    return "pack://application:,,,/images/icon_ccsl.jpg";

                case BusinessType.LNMJ:
                    return "pack://application:,,,/images/icon_lnmj.jpg";

                case BusinessType.WFCL:
                    return "pack://application:,,,/images/icon_wfcl.jpg";

                case BusinessType.ZZPZ:
                    return "pack://application:,,,/images/icon_zzpz.jpg";

                case BusinessType.ZJDY:
                    return "pack://application:,,,/images/icon_dyzj.png";
            }
            return "";
        }

    }


    public enum BusinessType {
        
        /// <summary>
        /// 初次申领
        /// </summary>
        CCSL = 1,

        /// <summary>
        /// 期满换证
        /// </summary>
        QMHZ = 2,

        /// <summary>
        /// 遗失补证
        /// </summary>
        YSBZ = 3,


        /// <summary>
        /// 损毁换证
        /// </summary>
        SHHZ = 4,
        /// <summary>
        /// 六年免检
        /// </summary>
        LNMJ = 5,
        /// <summary>
        /// 违法处理
        /// </summary>
        WFCL = 6,
        /// <summary>
        /// 自助拍照
        /// </summary>
        ZZPZ = 7,
        /// <summary>
        /// 证件打印
        /// </summary>
        ZJDY = 8,


        //增加自助发卡机的相关操作


        /// <summary>
        /// 制卡操作
        /// </summary>
        ZKCZ = 70,

        /// <summary>
        /// 入厂制卡
        /// </summary>
        RCZK = 71,

        /// <summary>
        /// 出厂制卡
        /// </summary>
        CCZK = 72,

        /// <summary>
        /// 厂内流转制卡
        /// </summary>
        CNLZZK = 73,


        /// <summary>
        /// 测试发卡机
        /// </summary>
        CeShiFaKaJi = 57,

        /// <summary>
        /// 手动发卡
        /// </summary>
        ShouDongFaKa = 58

    }

    public enum EnterBusinessType
    {

        /// <summary>
        /// 识别身份证
        /// </summary>
        SBSFZ = 1,

        /// <summary>
        /// 录入信息制卡
        /// </summary>
        LRXXZK = 2,

        /// <summary>
        /// 查询卡信息
        /// </summary>
        CXKXX = 3,

        /// <summary>
        /// 出厂还卡
        /// </summary>
        CCHK = 4,


        /// <summary>
        /// 六年免检
        /// </summary>
        LNMJ = 5,
        /// <summary>
        /// 违法处理
        /// </summary>
        WFCL = 6,
        /// <summary>
        /// 自助拍照
        /// </summary>
        ZZPZ = 7,
        /// <summary>
        /// 证件打印
        /// </summary>
        ZJDY = 8,

        /// <summary>
        /// 刷卡--查询信息
        /// </summary>
        SKCX = 9,
        /// <summary>
        /// 刷卡--打印信息
        /// </summary>
        SKDY = 10,



        //增加自助发卡机的相关操作

       
        /// <summary>
        /// 制卡操作
        /// </summary>
        ZKCZ = 70,

        /// <summary>
        /// 入厂制卡
        /// </summary>
        RCZK = 71,

        /// <summary>
        /// 出厂制卡
        /// </summary>
        CCZK = 72,

        /// <summary>
        /// 阴极铜制卡
        /// </summary>
        YJTZK = 78,

        /// <summary>
        /// 厂内流转制卡
        /// </summary>
        CNLZZK = 73,


        /// <summary>
        /// 信息录入
        /// </summary>
        XXLR = 74,

        /// <summary>
        /// 出厂--信息录入
        /// </summary>
        CCXXLR = 75,

        /// <summary>
        /// 厂内流转--信息录入
        /// </summary>
        CNLZXXLR = 76,

        /// <summary>
        /// 阴极铜--信息录入
        /// </summary>
        YJTXXLR = 79,

        /// <summary>
        /// 入厂货物--扫码制卡
        /// </summary>
        RCSMXXLR = 77,


        /// <summary>
        /// 还卡操作
        /// </summary>
        HKCZ = 80,

        /// <summary>
        /// 数据查询
        /// </summary>
        SJCX = 90,

        /// <summary>
        /// 测试发卡机
        /// </summary>
        CeShiFaKaJi = 57,


        /// <summary>
        /// 刷卡--出厂还卡
        /// </summary>
        SKHK = 11

    }

    /// <summary>
    /// 入厂业务类型
    /// </summary>
    public class EnterBusinessInfo
    {
        public EnterBusinessType enterBusinessType { get; set; }
        /// <summary>
        /// 识别身份证
        /// </summary>
        public string sbsfz { get; set; }
        /// <summary>
        /// 录入信息制卡
        /// </summary>
        public string lrxxzk { get; set; }
        /// <summary>
        /// 查询卡信息
        /// </summary>
        public string cxkxx { get; set; }


        public string sfzmhm { get; set; }
        public string xm { get; set; }
        public string sjhm { get; set; }
        public string sfzzp { get; set; }
        public string xczp { get; set; }
        public string qmtp { get; set; }
        public string zp { get; set; }

        public string zxbh { get; set; }

        public long sfzId { get; set; }
        public long xczpId { get; set; }
        public long qmId { get; set; }
        public long zpId { get; set; }
        public string lsh { get; set; }

        public string hphm { get; set; }


        public string hpzl { get; set; }
        public string vin6 { get; set; }

        public int lnmjIndex { get; set; }

        /// <summary>
        /// 页面左侧图标
        /// </summary>
        /// <returns></returns>
        public string getImgTitleUrl()
        {
            switch (this.enterBusinessType)
            {
                case EnterBusinessType.RCZK:
                case EnterBusinessType.CCZK:
                case EnterBusinessType.CNLZZK:
                case EnterBusinessType.YJTZK:
                    return "pack://application:,,,/images/icon/icon_qmhz_1.png";
                case EnterBusinessType.LRXXZK:
                    return "pack://application:,,,/images/icon/icon_lrxxzk.jpg";

                case EnterBusinessType.CXKXX:
                    return "pack://application:,,,/images/icon/icon_cxkxx.jpg";
            }
            return "";
        }

    }


}
